package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class EnumListArg {
    private String pk_name = "ENUM_CODE";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<EnumListCriteria> oredCriteria;

    public EnumListArg() {
        oredCriteria = new ArrayList<EnumListCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<EnumListCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(EnumListCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public EnumListCriteria or() {
    	EnumListCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public EnumListCriteria createCriteria() {
    	EnumListCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected EnumListCriteria createCriteriaInternal() {
    	EnumListCriteria criteria = new EnumListCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<EnumListCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<EnumListCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<EnumListCriterion> getAllCriteria() {
            return criteria;
        }

        public List<EnumListCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new EnumListCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new EnumListCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new EnumListCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new EnumListCriterion(condition, value1, value2));
        }

        public EnumListCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andEnumCodeIsNull() {
            addCriterion("ENUM_CODE is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeIsNotNull() {
            addCriterion("ENUM_CODE is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeEqualTo(Integer value) {
            addCriterion("ENUM_CODE =", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotEqualTo(Integer value) {
            addCriterion("ENUM_CODE <>", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeGreaterThan(Integer value) {
            addCriterion("ENUM_CODE >", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ENUM_CODE >=", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeLessThan(Integer value) {
            addCriterion("ENUM_CODE <", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeLessThanOrEqualTo(Integer value) {
            addCriterion("ENUM_CODE <=", value, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeLike(Integer value) {
            addCriterion("ENUM_CODE like ", value, "ENUM_CODE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotLike(Integer value) {
            addCriterion("ENUM_CODE  not like ", value, "ENUM_CODE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeLeftLike(Integer value) {
            addCriterion("ENUM_CODE like ", value, "ENUM_CODE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotLeftLike(Integer value) {
            addCriterion("ENUM_CODE  not like ", value, "ENUM_CODE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeRightLike(Integer value) {
            addCriterion("ENUM_CODE like ", value, "ENUM_CODE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotRightLike(Integer value) {
            addCriterion("ENUM_CODE  not like ", value, "ENUM_CODE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeIn(List<Integer> values) {
            addCriterion("ENUM_CODE  in ", values, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotIn(List<Integer> values) {
            addCriterion("ENUM_CODE not in ", values, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeBetween(Integer value1, Integer value2) {
            addCriterion("ENUM_CODE between ", value1, value2, "ENUM_CODE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("ENUM_CODE not between ", value1, value2, "ENUM_CODE");
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andEnumValueIsNull() {
            addCriterion("ENUM_VALUE is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueIsNotNull() {
            addCriterion("ENUM_VALUE is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueEqualTo(String value) {
            addCriterion("ENUM_VALUE =", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotEqualTo(String value) {
            addCriterion("ENUM_VALUE <>", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueGreaterThan(String value) {
            addCriterion("ENUM_VALUE >", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueGreaterThanOrEqualTo(String value) {
            addCriterion("ENUM_VALUE >=", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueLessThan(String value) {
            addCriterion("ENUM_VALUE <", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueLessThanOrEqualTo(String value) {
            addCriterion("ENUM_VALUE <=", value, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueLike(String value) {
            addCriterion("ENUM_VALUE like ", value, "ENUM_VALUE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotLike(String value) {
            addCriterion("ENUM_VALUE  not like ", value, "ENUM_VALUE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueLeftLike(String value) {
            addCriterion("ENUM_VALUE like ", value, "ENUM_VALUE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotLeftLike(String value) {
            addCriterion("ENUM_VALUE  not like ", value, "ENUM_VALUE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueRightLike(String value) {
            addCriterion("ENUM_VALUE like ", value, "ENUM_VALUE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotRightLike(String value) {
            addCriterion("ENUM_VALUE  not like ", value, "ENUM_VALUE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueIn(List<String> values) {
            addCriterion("ENUM_VALUE  in ", values, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotIn(List<String> values) {
            addCriterion("ENUM_VALUE not in ", values, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueBetween(String value1, String value2) {
            addCriterion("ENUM_VALUE between ", value1, value2, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumValueNotBetween(String value1, String value2) {
            addCriterion("ENUM_VALUE not between ", value1, value2, "ENUM_VALUE");
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andEnumNameIsNull() {
            addCriterion("ENUM_NAME is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameIsNotNull() {
            addCriterion("ENUM_NAME is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameEqualTo(String value) {
            addCriterion("ENUM_NAME =", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotEqualTo(String value) {
            addCriterion("ENUM_NAME <>", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameGreaterThan(String value) {
            addCriterion("ENUM_NAME >", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameGreaterThanOrEqualTo(String value) {
            addCriterion("ENUM_NAME >=", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameLessThan(String value) {
            addCriterion("ENUM_NAME <", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameLessThanOrEqualTo(String value) {
            addCriterion("ENUM_NAME <=", value, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameLike(String value) {
            addCriterion("ENUM_NAME like ", value, "ENUM_NAME", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotLike(String value) {
            addCriterion("ENUM_NAME  not like ", value, "ENUM_NAME", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameLeftLike(String value) {
            addCriterion("ENUM_NAME like ", value, "ENUM_NAME", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotLeftLike(String value) {
            addCriterion("ENUM_NAME  not like ", value, "ENUM_NAME", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameRightLike(String value) {
            addCriterion("ENUM_NAME like ", value, "ENUM_NAME", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotRightLike(String value) {
            addCriterion("ENUM_NAME  not like ", value, "ENUM_NAME", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameIn(List<String> values) {
            addCriterion("ENUM_NAME  in ", values, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotIn(List<String> values) {
            addCriterion("ENUM_NAME not in ", values, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameBetween(String value1, String value2) {
            addCriterion("ENUM_NAME between ", value1, value2, "ENUM_NAME");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumNameNotBetween(String value1, String value2) {
            addCriterion("ENUM_NAME not between ", value1, value2, "ENUM_NAME");
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andSystemIdIsNull() {
            addCriterion("SYSTEM_ID is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdIsNotNull() {
            addCriterion("SYSTEM_ID is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdEqualTo(Integer value) {
            addCriterion("SYSTEM_ID =", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotEqualTo(Integer value) {
            addCriterion("SYSTEM_ID <>", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdGreaterThan(Integer value) {
            addCriterion("SYSTEM_ID >", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SYSTEM_ID >=", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdLessThan(Integer value) {
            addCriterion("SYSTEM_ID <", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdLessThanOrEqualTo(Integer value) {
            addCriterion("SYSTEM_ID <=", value, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdLeftLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotLeftLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdRightLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotRightLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdIn(List<Integer> values) {
            addCriterion("SYSTEM_ID  in ", values, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotIn(List<Integer> values) {
            addCriterion("SYSTEM_ID not in ", values, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdBetween(Integer value1, Integer value2) {
            addCriterion("SYSTEM_ID between ", value1, value2, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andSystemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SYSTEM_ID not between ", value1, value2, "SYSTEM_ID");
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andEnumDescIsNull() {
            addCriterion("ENUM_DESC is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescIsNotNull() {
            addCriterion("ENUM_DESC is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescEqualTo(String value) {
            addCriterion("ENUM_DESC =", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotEqualTo(String value) {
            addCriterion("ENUM_DESC <>", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescGreaterThan(String value) {
            addCriterion("ENUM_DESC >", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescGreaterThanOrEqualTo(String value) {
            addCriterion("ENUM_DESC >=", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescLessThan(String value) {
            addCriterion("ENUM_DESC <", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescLessThanOrEqualTo(String value) {
            addCriterion("ENUM_DESC <=", value, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescLike(String value) {
            addCriterion("ENUM_DESC like ", value, "ENUM_DESC", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotLike(String value) {
            addCriterion("ENUM_DESC  not like ", value, "ENUM_DESC", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescLeftLike(String value) {
            addCriterion("ENUM_DESC like ", value, "ENUM_DESC", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotLeftLike(String value) {
            addCriterion("ENUM_DESC  not like ", value, "ENUM_DESC", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescRightLike(String value) {
            addCriterion("ENUM_DESC like ", value, "ENUM_DESC", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotRightLike(String value) {
            addCriterion("ENUM_DESC  not like ", value, "ENUM_DESC", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescIn(List<String> values) {
            addCriterion("ENUM_DESC  in ", values, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotIn(List<String> values) {
            addCriterion("ENUM_DESC not in ", values, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescBetween(String value1, String value2) {
            addCriterion("ENUM_DESC between ", value1, value2, "ENUM_DESC");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andEnumDescNotBetween(String value1, String value2) {
            addCriterion("ENUM_DESC not between ", value1, value2, "ENUM_DESC");
            return (EnumListCriteria) this;
        }
        public EnumListCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (EnumListCriteria) this;
        }

        public EnumListCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (EnumListCriteria) this;
        }

    }

    public static class EnumListCriteria extends GeneratedCriteria {

        protected EnumListCriteria() {
            super();
        }
    }

    public static class EnumListCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected EnumListCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected EnumListCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected EnumListCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected EnumListCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected EnumListCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected EnumListCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}